'use strict';
module.exports = (sequelize, DataTypes) => {
  const admin = sequelize.define('admins', {
    name: {
      type: DataTypes.STRING(32)
    },
    password: {
      allowNull: false,
      type: DataTypes.STRING(16)
    },
    number: {
      allowNull: false,
      type: DataTypes.STRING(16)
    },
    createdAt: {
      allowNull: false,
      type: DataTypes.DATE
    },
    updatedAt: {
      allowNull: false,
      type: DataTypes.DATE
    }
  }, {
    tableName: 'admins',
    charset: 'utf8mb4',
    collate: 'utf8mb4_bin'
  });
  admin.associate = function(models) {
    // associations can be defined here
  };
  return admin;
};